package org.bambrikii.kbManager.kb2;

import java.text.MessageFormat;
import java.util.List;

import org.bambrikii.kbManager.kb2.model.ArtefactAsText;
import org.hibernate.Criteria;

public class Query_ArtefactAsTextPrinter {
	public static void printList(Criteria crit) {
		@SuppressWarnings("unchecked")
		List<ArtefactAsText> artefacts1 = crit.list();
		printList(artefacts1);
	}

	public static void printList(List<ArtefactAsText> artefacts1) {
		for (ArtefactAsText artefact1 : artefacts1) {
			System.out.println(MessageFormat.format("{0} {1} {2} {4}",
					artefact1.getId(), artefact1.getKey(),
					artefact1.getTitle(), artefact1.getText()));
		}
	}
}
